#include <iostream>
#include <sqlite3.h>
#include "QueryPacket.h"
#include <vector>
#include <list>
#include <vector>
#include "NTuple.h"
#include <string>
#include <set>
#include <algorithm>

#ifndef _RESULTHANDLER_H_
#define _RESULTHANDLER_H_

class ResultHandler{
public:
	ResultHandler();
	~ResultHandler();
	ResultHandler(QueryPacket &queryP,std::vector<NTuple> &resS);
	std::vector<NTuple> join();
	std::string iToString(int i);
public:
	QueryPacket queryPacket;
	std::vector<NTuple> resultS;
	std::vector<NTuple> partialResult;
	sqlite3 *pDB;
};
#endif // _RESULTHANDLER_H_

